バージョン

AddChart(ChartType,WorksheetCell,PointF,WorksheetCell,PointF,Action<WorksheetChart>) メソッド

チャートを指定した境界線を持つコレクションに追加します。
シンタックス

パラメータ

chartType
コレクションに追加するチャートのタイプ。
topLeftCornerCell
形状の左上角の置かれるセル。
topLeftCornerPosition
パーセントで表される、形状の左上隅の topLeftCornerCell での位置。
bottomRightCornerCell
形状の右下角の置かれるセル。
bottomRightCornerPosition
パーセントで表される、形状の右下隅の bottomRightCornerCell での位置。
chartInitializer
コレクションに追加される前にチャートを初期化するオプションのコールバック。

戻り値の型

WorksheetChart インスタンス。
例外
例外解説
System.ComponentModel.InvalidEnumArgumentExceptionchartTypeInfragistics.Documents.Excel.Charts.ChartType 列挙体で定義されていません。
System.InvalidOperationExceptiontopLeftCornerCell または bottomRightCornerCell は null です。
System.InvalidOperationExceptiontopLeftCornerCell および bottomRightCornerCell は、異なるワークシートか、このコレクションが属するワークシートとは別のワークシートに属しています。
System.InvalidOperationException他のチャートの Shapes コレクションに追加されているチャートが null の場合。
System.InvalidOperationExceptionWorkbook.CurrentFormat がチャート変更をサポートしない場合。たとえば、'Excel97To2003' または 'Excel97To2003Template'。
参照